﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using POS.UserControl.Dialog;
using Model;

namespace POS.UserControl
{
    public partial class Uc_Provider : DevExpress.XtraEditors.XtraUserControl
    {
        public Uc_Provider()
        {
            InitializeComponent();
        }
        public B_Provider fProvider { get; set; }
        private void _Provider_ButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            fProvider = null;
            this._Provider.Text = string.Empty;
            using (frmPopProvider fpp = new frmPopProvider())
            {
                if (fpp.ShowDialog() == DialogResult.OK)
                {
                    fProvider = fpp.GetSelectRow();
                    this._Provider.Text = fProvider.ProviderName;
                }
            }
        }
    }
}
